
public class textmethod {

	public static long fun(int n){
		if(n==1){
			return 1;
		}else {
			return n*fun(n-1);
		}
		
	}
	public static void main(String[] args) {
		System.out.println(fun(10));
	}
}
